package com.kuang;

/**
 * ClassName: ThreadTest
 * Description:
 * Date: 2021/3/16 13:59
 * Company: TravelSky
 *
 * @author YangXin
 */
public class ThreadTest extends Thread{
    @Override
    public void run() {
        //run方法线程体
        for (int i = 0 ; i < 10; i++){
            System.out.println("run方法线程体...");
        }
    }

    public static void main(String[] args) {
        //main主线程
        ThreadTest threadTest = new ThreadTest();
        threadTest.start();

        for (int i = 0 ; i < 100; i++){
            System.out.println("学习多线程...");
        }
    }
}
